import type { IllnessTime } from '@/enums'
import { flagOptions, timeOptions } from '@/services/constants'

export const getIllnessTime = (illnessTime: IllnessTime) =>
  timeOptions.find((item) => item.value === illnessTime)?.label

export const getConsultFlag = (flag: 0 | 1) =>
  flagOptions.find((item) => item.value === flag)?.label
